from django.shortcuts import render
from django.http import HttpResponse
from django.contrib.auth.views import login_required
from .models import Collect


# Create your views here.
@login_required
def collect(request):
    print(request.user)
    cs = Collect.objects.filter(user=request.user)
    return render(request, 'operate/collect.html', context={'cs': cs})
